package com.jqr.activity.handlerlistviewroomdemo.db;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.jqr.activity.handlerlistviewroomdemo.entity.User;

import java.util.List;

@Dao
public interface UserDao {
    @Insert
    void insert(User user);
    @Query("select * from users")
    List<User> all();
}
